<?php
/**
+++----视图模型 admin与admin_group
*/
class UsersViewModel extends ViewModel {
   
    public $viewFields = array(

		 'admin'=>array('*' ,'_as'=>'a' ),
		
		 'think_auth_group_access'=>array('*','_as'=>'ag','_on'=>'a.uid=ag.uid'),
		
		 );


  //獲取所有信息
   public function getAll($where,$limit,$order){
	    
		return $this->where($where)->limit($limit)->order($order)->select();
	}
  //獲取一條信息
   public function getOne($where){
		return $this->where($where)->find();
	}

  
}

?>